package com.mgface.zookeeper.curator;

import org.apache.curator.framework.CuratorFramework;
import org.apache.curator.framework.CuratorFrameworkFactory;
import org.apache.curator.retry.ExponentialBackoffRetry;

public class CreateSession {

	public static void main(String[] args) {
		CuratorFramework client = CuratorFrameworkFactory.builder()
				.connectString("127.0.0.1:2181").sessionTimeoutMs(10_000)
				.retryPolicy(new ExponentialBackoffRetry(100, 3)).build();
		client.start();
		System.out.println("-----");
	}

}
